package com.example.socket.model;

/**
 * Created with IDEA
 * author:QinWei
 * Date:2019/5/21
 * Time:9:55
 */
public class Dish {


    private final String name;
    /**
     * 是否是素食
     */
    private final boolean vegetarian;
    /**
     * 含卡路里
     */
    private final int calories;
    /**
     * 类型
     */

    private final Type type;


    public Dish(String name, boolean vegetarian, int calories, Type type) {
        this.name = name;
        this.vegetarian = vegetarian;
        this.calories = calories;
        this.type = type;

    }


    public enum Type {MEAT, FISH, OTHER}

    public String getName() {
        return name;
    }

    public boolean isVegetarian() {
        return vegetarian;
    }

    public int getCalories() {
        return calories;
    }

    public Type getType() {
        return type;
    }
}
